package com.yueyouth.controller;

import com.yueyouth.common.JsonData;
import com.yueyouth.entity.TUserBaseInfo;
import com.yueyouth.service.TUserBaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api")
public class RegisterController {

    @Autowired
    private TUserBaseInfoService userBaseInfoService;

    /**
     * 前端请求进入控制层
     * */
    @RequestMapping("/register")
    public JsonData register(TUserBaseInfo tUserBaseInfo){
        return userBaseInfoService.register(tUserBaseInfo);
    }
}
